package demo.factory;

/**
 * Created with IntelliJ IDEA.
 * User: supereme
 * Date: 8/26/13
 * Time: 12:51 AM
 * To change this template use File | Settings | File Templates.
 */
public class ServiceFactory {
    private static UserService userService= new UserService();
    private static LoginService loginService= new LoginService();
    private static ServiceFactory serviceFactory= new ServiceFactory();
    private ServiceFactory(){

    }

    public  UserService createUserService(){
        return userService;
    }

    public  LoginService createLoginService(){
        return loginService;
    }

    public static ServiceFactory createInstance(){
        return serviceFactory;
    }


}
